package com.wjwh.heaven.common.core.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;

import static org.springframework.http.HttpStatus.BAD_REQUEST;


/**
 * 自定义通用异常
 * @author dm
 */
@Getter
public class RrException extends RuntimeException {

    private Integer status = BAD_REQUEST.value();

    public RrException(String msg){
        super(msg);
    }

    public RrException(HttpStatus status, String msg){
        super(msg);
        this.status = status.value();
    }
}
